<?php 
namespace app\user\model;

use think\Model;

class Group extends Model
{
    protected $name = 'auth_group';

    public function user()
    {
        return $this->belongsToMany('User',\think\Config::get('database.prefix').'auth_access','uid','group_id');
    }

}